import request from '@/utils/request'

export const findProductByParentId = parentId => {
  return request({
    url: `/admin/product/category/findByParentId/${parentId}`,
    method: 'get',
  })
}

export const exportData = () => {
  return request({
    url: `/admin/product/category/exportData`,
    method: 'get',
    responseType: 'blob',
  })
}
